package model;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: a
 * Date: 2022-12-06
 * Time: 23:17
 */
public class UserInfo {
    public static User[] users = new User[10000007];

    public void insert(int userid, String username, String password){
        User user = new User();
        user.setUserid(userid);
        user.setUsername(username);
        user.setPassword(password);
        users[userid] = user;
        System.out.println("添加成功");
    }

    public void remove(int userid){
        users[userid] = null;
    }
}
